package casa.depesos.app.com.http.req;


import casa.depesos.app.com.http.HttpReq;
import casa.depesos.app.com.http.Req;
import casa.depesos.app.com.http.ReqCallback;
import casa.depesos.app.com.http.bean.HomeConfigBean;
import casa.depesos.app.com.http.parser.HomeConfigParser;
import okhttp3.FormBody;

public class HomeConfigReq implements HttpReq<HomeConfigBean> {

    @Override
    public void req(ReqCallback<HomeConfigBean> callback) {// /app/queryFirst/queryFirstConfig
        FormBody.Builder builder = new FormBody.Builder();
        Req.post("/app/primaryQuery/retrieveInitialConfiguration", getParam(), getHeader(), builder.build(), new HomeConfigParser(), callback, this);
    }
}
